# @Author   : 懒羊羊
# @File     : day02_if_for_while.py
# @Time     : 2024/11/26 16:39


# for i in range(3):
#     age = int(input("请输入年龄："))
#
#     if age > 40:
#         print("你可以领鸡蛋！！！")
#         if age < 50:
#             print("你可以领10个")
#         elif age < 60:
#             print("你可以领20个")
#         else:
#             print("你可以领30个")
#     elif age < 12:
#         print("你可以领玩具")
#     elif age < 24:
#         print("你可以领钢笔")
#     else:
#         print("你可以领纸巾")

mydict = {"name": "张三", "age": 18, "address": "河南", "sex": "男", "birth": "2002-10-10"}

# for i in mydict.keys():
#     print(i)
#
# for j in mydict.values():
#     print(j)

for key_value in mydict.items():
    print(key_value)

for key_value in mydict.items():
    key, value = key_value
    print(f"key：{key}, value：{value}")
